package com.kerwin.sysmgt.entity;

import java.io.Serializable;
import java.util.Objects;

public class ConditionUser implements Serializable {

    private static final long serialVersionUID = -1715935769070650846L;
    private String userName   ;  //用户姓名
    private String userPhone;
    private String pageNum;
    private String pageSize;

    public ConditionUser() {
    }

    public ConditionUser(String userName, String userPhone, String pageNum, String pageSize) {
        this.userName = userName;
        this.userPhone = userPhone;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getPageNum() {
        return pageNum;
    }

    public void setPageNum(String pageNum) {
        this.pageNum = pageNum;
    }

    public String getPageSize() {
        return pageSize;
    }

    public void setPageSize(String pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String toString() {
        return "ConditionUser{" +
                "userName='" + userName + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", pageNum='" + pageNum + '\'' +
                ", pageSize='" + pageSize + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ConditionUser that = (ConditionUser) o;
        return Objects.equals(userName, that.userName) && Objects.equals(userPhone, that.userPhone) && Objects.equals(pageNum, that.pageNum) && Objects.equals(pageSize, that.pageSize);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userName, userPhone, pageNum, pageSize);
    }
}
